﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace RippleEffect
{
    public partial class Page : UserControl
    {
        public Page()
        {
            InitializeComponent();
            Effect = new RippleEffect(this.GridMain);
        }

        private RippleEffect Effect;

        private void PlayAnimation()
        {
               
        }

        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
           
           
        }

        private void Button_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            //Effect.CircularRipple(50, 5, new Point(200, 200));
        }

        private void Button_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            ImageSource img = new System.Windows.Media.Imaging.BitmapImage(new Uri("maya.jpg", UriKind.Relative));
            Effect.CircularRipple(500, 30, new Point(300, 300),2,3,img);
        }
    }
}
